import { pubRequire } from '@utils/public'
const base = '/activities/recommends-record'
const baseUrl = '/activities/recommends-reward'

// 获取全部活动
export function getAllActivity(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/options`, params, callBack, errBack)
}

// 获取转介绍邀请记录
export function getwithdrawList(params, callBack, errBack) {
  return pubRequire('get', `${base}`, params, callBack, errBack)
}

// 统计接口
export function getStatisticsList(params, callBack, errBack) {
  return pubRequire('get', `${base}/${params.activityId}/statistics`,'', callBack, errBack)
}

// 被邀请人信息详情
export function getInviteeList(params, callBack, errBack) {
  return pubRequire('get', `${base}/detail`,params, callBack, errBack)
}